<?php

use yii\helpers\Url;

/* @var $this \yii\web\View */
/* @var $content string */
/* @var \common\models\Order $model */

$this->title = '订单详情'
?>
<section class="app-container app-order app-order-detail">
    
    <div class="app-order-item">
        <div class="app-order-item-infos">
            <h3><?= $model->goods->goods_name ?></h3>
            <p>订单金额：<?= $model->price . '元' ?></p>
            <p>下单时间：<?= date('Y-m-d H:i:s', $model->created_time) ?></p>
            <?php
            if( $model->pay_time >0  ){
                echo '<p>支付时间：'. date('Y-m-d H:i:s', $model->pay_time) .'</p>';
            }
            ?>
            <div class="clearfix">
                <span class="pull-right app-status-error">未付款</span>
            </div>
        </div>
    </div>

    <div class="app-order-content">
        
        <span>共3张图</span>
    </div>

</section>